package com.woohua.demo.command;

/***
 * @title Sotck
 * @description:库存
 * @author baiji
 * @version 1.0.0
 * @create 2023/6/5 11:23
 **/
public class Stock {

    private String name = "ABC";

    private int quantity = 10;

    public void buy() {
        System.out.println("Stock [ Name: " + name + ", Quantity: " + quantity + " ] bought");
    }

    public void sell() {
        System.out.println("Stock [ Name: " + name + ", Quantity: " + quantity + " ] sold");
    }
}
